package com.gaogzhen.mappers;

import com.gaogzhen.domain.AdminBank;
import com.gaogzhen.dto.AdminBankDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Administrator
 * @date 2022-11-30 11:06
 */
@Mapper(componentModel = "spring")
public interface AdminBankDtoMappers {
    AdminBankDtoMappers INSTANCE  = Mappers.getMapper(AdminBankDtoMappers.class);

    /**
     * dto 转 entity
     * @param source 源
     * @return       entity
     */
    AdminBank toConvertEntity(AdminBankDto source);

    /**
     * entity 转 dto
     * @param source  源
     * @return        dto
     */
    AdminBankDto toConvertDto(AdminBank source);

    /**
     * dto集合 转 entity集合
     * @param source 源集合
     * @return       entity集合
     */
    List<AdminBank> toConvertEntity(List<AdminBankDto> source);

    /**
     * entity集合 转 dto集合
     * @param source  源集合
     * @return        dto集合
     */
    List<AdminBankDto> toConvertDto(List<AdminBank> source);
}
